package com.pxst.merchant.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.pxst.entity.BaseEntity;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;

/**
 * @Author: @Ryan
 * @Description:
 * @CreateTime: 2023-09-12 15:27
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("sys_merchant_wallet")
public class SysMerchantWalletEntity extends BaseEntity {

    @TableId(type = IdType.ASSIGN_ID)
    private Long id;

    @TableField("merchant_id")
    @ApiModelProperty("商户id")
    private Long merchantId;

    @TableField("balance")
    @ApiModelProperty("余额")
    private BigDecimal balance;

    @TableField("available_balance")
    @ApiModelProperty("可用余额")
    private BigDecimal availableBalance;

    @TableField("freeze_balance")
    @ApiModelProperty("冻结余额")
    private BigDecimal freezeBalance;

    @TableField("freeze_amount_main")
    @ApiModelProperty("主单冻结金额")
    private BigDecimal freezeAmountMain;

    @TableField("wait_income_amount")
    @ApiModelProperty("等待入款金额")
    private BigDecimal waitIncomeAmount;

    @TableField("today_tr_fee")
    @ApiModelProperty("今日转帐费用")
    private BigDecimal todayTrFee;

    @TableField("last_trade_no")
    @ApiModelProperty("最后一次完成的交易单号")
    private String lastTradeNo;

    @TableField("is_locked")
    @ApiModelProperty("资金锁,0:正常,1:锁住")
    private Integer locked;

    @TableField("lock_action")
    @ApiModelProperty("资金锁action")
    private String lockAction;

    @TableField("frozen_balance_aj")
    @ApiModelProperty("AJ100冻结金额")
    private BigDecimal freezeBalanceAj;

}
